package net.kleinhenz.norabase.client.datasource;

import com.google.gwt.user.client.rpc.AsyncCallback;
import java.util.List;
import java.util.Map;

import net.kleinhenz.norabase.shared.SortOrientation;
import net.kleinhenz.norabase.shared.TextMatchStyle;
import net.kleinhenz.norabase.shared.model.Rune;

public interface BattlegroupDSServiceAsync {
	
    public abstract void add(Integer runeId, String type, String battlegroupId, AsyncCallback<Rune> callback);
    public abstract void remove(Integer runeId, String type, String battlegroupId, AsyncCallback<Rune> callback);
	public abstract void fetch(int start, int end, Map<String, SortOrientation> sortSpec,
			TextMatchStyle textMatchStyle, Map<String, Object> criteria,
			String battlegroupId, AsyncCallback<List<Rune>> callback);
}
